package com.ruoyi.workflow.dubbo;

import com.ruoyi.workflow.api.RemoteTaskService;
import com.ruoyi.workflow.api.domain.bo.TaskCompleteBo;
import com.ruoyi.workflow.service.IActTaskService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 任务管理
 *
 * @author gssong
 */
@RequiredArgsConstructor
@Service
@DubboService
public class RemoteTaskServiceImpl implements RemoteTaskService {

    private final IActTaskService iActTaskService;

    /**
     * @description: 完成任务
     * @param: req
     * @return: java.lang.Boolean
     * @author: gssong
     * @date: 2022/12/13 22:28
     */
    @Override
    public Boolean completeTask(TaskCompleteBo req) {
        return iActTaskService.completeTask(req);
    }
}
